﻿using SHZY.Common.Const;
using SHZY.Common.Contracts;
using SqlSugar;

namespace SHZY.BaseData.Entitys;

/// <summary>
/// 检卡抽样方案实体.
/// </summary>
[SugarTable("qms_base_checkcardsample", "检卡抽样方案")]
[Tenant(ClaimConst.TENANTID)]
public class QmsBaseCheckcardsampleEntity : CLDEntityBase
{

    /// <summary>
    /// 主表ID.
    /// </summary>
    [SugarColumn(ColumnName = "F_CheckGuid", ColumnDescription = "主表ID")]
    public string CheckGuid { get; set; }

    /// <summary>
    /// 抽检类型:字典项：国标AQL、固定抽样、固定比例、自定义AQL、执行时自行设置.
    /// </summary>
    [SugarColumn(ColumnName = "F_SamplingType", ColumnDescription = "抽检类型:字典项：国标AQL、固定抽样、固定比例、自定义AQL、执行时自行设置")]
    public string SamplingType { get; set; }

    /// <summary>
    /// 国标：检验水平.
    /// </summary>
    [SugarColumn(ColumnName = "F_GLevel", ColumnDescription = "国标：检验水平")]
    public string GLevel { get; set; }

    /// <summary>
    /// 国标：国际严格度.
    /// </summary>
    [SugarColumn(ColumnName = "F_GStringency", ColumnDescription = "国标：国际严格度")]
    public string GStringency { get; set; }

    /// <summary>
    /// 国标：国际质量限.
    /// </summary>
    [SugarColumn(ColumnName = "F_GQualityLimit", ColumnDescription = "国标：国际质量限")]
    public string GQualityLimit { get; set; }

    /// <summary>
    /// 固定抽样数量.
    /// </summary>
    [SugarColumn(ColumnName = "F_FixedSamplingQty", ColumnDescription = "固定抽样数量")]
    public int? FixedSamplingQty { get; set; }

    /// <summary>
    /// 固定比列.
    /// </summary>
    [SugarColumn(ColumnName = "F_FixedRatio", ColumnDescription = "固定比列")]
    public decimal FixedRatio { get; set; }

    /// <summary>
    /// 自定义AQL.
    /// </summary>
    [SugarColumn(ColumnName = "F_AQL", ColumnDescription = "自定义AQL")]
    public string Aql { get; set; }


}